CMAKE_MINIMUM_REQUIRED(VERSION 3.4.1)

ADD_LIBRARY(zinnia SHARED
		jni/com_tomhw_zinnia.cpp
		util/char_convert.cpp
		zinnia/character.cpp
		zinnia/character.cpp
		zinnia/feature.cpp
		zinnia/libzinnia.cpp
		zinnia/param.cpp
		zinnia/recognizer.cpp
		zinnia/sexp.cpp
		zinnia/svm.cpp
		zinnia/trainer.cpp)

INCLUDE_DIRECTORIES(zinnia)

ADD_DEFINITIONS(-DHAVE_CONFIG_H)

TARGET_LINK_LIBRARIES(zinnia android log)